﻿using PurchaseSales.Manage.Model.Entities;
using PurchaseSales.Manage.Services;

namespace PurchaseSales.Manage.Repositories
{
    public class CustomerRepository : Repository<Customer>, ICustomerRepository
    {
        public void Save(Customer customer)
        {
            Session.SaveOrUpdate(customer);
            Session.Flush();
        }

        public void Deleted(Customer customer)
        {
            Session.Delete(customer);
            Session.Flush();
        }
    }
}